/* Copyright 2001,2002,2003 NAH6 BV
 * All Rights Reserved
 *
 *  $Header: /var/lib/cvs/secphone/ui/userdata/UDCAutoAnswer.h,v 1.4 2003/11/21 12:39:24 itsme Exp $
 *
 *
 */


#ifndef __AUTOANSWER_H__

#include "UserDataHandler.h"

// struct is not actually used
typedef struct _tagAutoAnswerMessage {
    BYTE msg;
} AutoAnswerMessage;

class CCPhoneDlg;

class UDCAutoAnswer : public UDClientHandler {
public:
    UDCAutoAnswer(CCPhoneDlg& dlg);
    virtual ~UDCAutoAnswer();

    virtual bool HandleUserdataMessage(const ByteVector& data);
    bool SendAnsweredMessage();
    bool SendWaitingMessage();
    bool SendHangupMessage();

    virtual bool StopSending();
private:
    CCPhoneDlg& m_dlg;

    bool HandleWaitingMessage();
    bool HandleAnsweredMessage();
    bool HandleHangupMessage();
};


#define __AUTOANSWER_H__
#endif
